//
//  ZHLEETempViewVC.swift
//  ZHLEEBlog_swift_pro
//
//  Created by ZHLEEBlander on 15/10/11.
//  Copyright © 2015年 ZHLEEBlander. All rights reserved.
//

import UIKit

class ZHLEETempViewVC: UIViewController {

    
    override func viewDidLoad() {
        super.viewDidLoad()
        
        title = "当前是第\(navigationController!.childViewControllers.count)层"
        
        view.backgroundColor = UIColor.whiteColor()
        
//        navigationItem.leftBarButtonItem = UIBarButtonItem.item(self, action: "pop", imageName: "navigationbar_back_withtext", title: "首页")
        
    }
    
    @objc private func pop(){
     
        navigationController?.popViewControllerAnimated(true)
    }
    
    override func touchesBegan(touches: Set<UITouch>, withEvent event: UIEvent?) {
        navigationController?.pushViewController(ZHLEETempViewVC(), animated: true)
    }
}
